<?php

namespace App\Exports;

use Maatwebsite\Excel\Concerns\FromArray;
use Maatwebsite\Excel\Concerns\Exportable;
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
use Maatwebsite\Excel\Concerns\WithTitle;

#导出多张表(sheet)
class UsersExportMultiSheets implements  WithMultipleSheets
{
    protected $data;

    public function __construct(array $data)
    {
        $this->data = $data;
    }


    public function sheets(): array
    {
//        $sheets = [];
//        for ($month = 1; $month <=12; $month++) {
//            $sheets[] = new
//        }
//        return $this->data;
    }


}
